import ajax from '@/utils/request'
// 获取内容列表
export const getContent = params => {
  return ajax({
    method: 'GET',
    url: '/mp/v1_0/articles',
    params
  })
}
// 获取文章频道
export const getChannel = () => {
  return ajax({
    method: 'GET',
    url: '/mp/v1_0/channels'
  })
}
// 删除文章
export const delArticle = params => {
  return ajax({
    url: '/mp/v1_0/articles/' + params,
    method: 'DELETE'
  })
}
